//
//  Kratos_QuickLoginVC.m
//  kratos_framework_Example
//
//  Created by 7yao.top on 2018/10/30.
//  Copyright © 2018年 kratos_framework. All rights reserved.
//

#import "Kratos_QuickLoginVC.h"
#import "Kratos_QuickView.h"
#import "Kratos_QuickLoginPresenter_Kra.h"
#import "k_const.h"
@interface Kratos_QuickLoginVC ()
@property (nonatomic,strong) Kratos_QuickView *Kra_quickView;
@property (nonatomic,strong)Kratos_QuickLoginPresenter_Kra *Kra_presenter;

@end

@implementation Kratos_QuickLoginVC

- (void)viewDidLoad {
    [super viewDidLoad];

    self.view.backgroundColor = [UIColor whiteColor];
    [self.Kra_coverView addSubview:self.Kra_quickView];
    [self accountViewLayout];
    [self.Kra_presenter Kratos_usageLogic];
}


- (Kratos_QuickView *)Kra_quickView
{
    if (_Kra_quickView == nil) {
        _Kra_quickView = [[Kratos_QuickView alloc]init];
        _Kra_quickView.backgroundColor = [UIColor whiteColor];
        _Kra_quickView.presenter = self.Kra_presenter;;
    }
    return _Kra_quickView;
}


- (Kratos_QuickLoginPresenter_Kra *)Kra_presenter
{
    if (_Kra_presenter == nil) {
        _Kra_presenter = [[Kratos_QuickLoginPresenter_Kra alloc] initWithView:self.Kra_quickView];
        [_Kra_presenter setViewController:self];
    }
    return _Kra_presenter;
}

- (void)doRotateAction:(NSNotification *)notification {
    [self accountViewLayout];
}

- (void)accountViewLayout
{
    layoutView(self.Kra_quickView)
}

@end
